package com.h2n.framework.composer;

import org.zkoss.zul.*;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.Executions;
import org.zkoss.zk.ui.Component;
import org.zkoss.idom.Document;

/**
 * Created by IntelliJ IDEA.
 * User: DUNGCT
 * Date: Oct 8, 2009
 * Time: 10:47:02 AM
 * To change this template use File | Settings | File Templates.
 */
public class CustomersComposer extends AbstractPageComposer {
    Window CustomersForm;
    Button btnSearch;
    Button btnCreate;
    Button btnEdit;
    Button btnDel;
    Checkbox ckbCheckAll;
    Rows listRows;

    public void doAfterCompose(Component c) throws Exception{
        super.doAfterCompose(c);
    
    }

    public void onClick$btnCreate(Event e) throws Exception{
        final Window win = (Window) Executions.createComponents(
				"CustomersAdd.zul", null, null);
		win.setMaximizable(false);
		win.doModal();
    }
    public void onClick$btnEdit(Event e) throws Exception{
        final Window win = (Window) Executions.createComponents(
				"CustomersEdit.zul", null, null);
		win.setMaximizable(false);
		win.doModal();
    }

//    public void onCheck$ckbCheckAll(Event e) throws Exception{
//        Messagebox.show(listRows.getAttribute("checkbox",1)+"", "Warning", Messagebox.OK, Messagebox.EXCLAMATION);
//    }
}
